solving multi-step linear equations